package com.hmall.api.client;

import cn.hutool.core.bean.BeanUtil;
import com.hmall.api.dto.PayOrderDTO;
import com.hmall.api.fallback.PayClientFallback;
import io.swagger.models.auth.In;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "pay-service",fallbackFactory = PayClientFallback.class)
public interface PayClient {
    @GetMapping("/pay-orders/biz/{orderId}")
    PayOrderDTO queryByBizOrderNo(@PathVariable("orderId") Long orderId);


    @PutMapping("/pay-orders/biz/{status}/{orderId}")
    void updateStatusByBizOrderId(@PathVariable("status") Integer status, @PathVariable("orderId") Long orderId);

}
